Run CMD as Administrator(Important to receive execution results from hostsedit back to CMD),
using 'cd' command change working directory to where hostsedit.exe is placed,
now write commands as Shown in the Samples.

Microsoft Windows [Version 10.0.14393]
(c) 2016 Microsoft Corporation. All rights reserved.

C:\Windows\system32>hostsedit /a 0.0.0.0 www.example-domain.com
Adding entry to HOSTS file...
Done.

C:\Windows\system32>hostsedit /r www.example-domain.com
Removing entry from HOSTS file...
Done.